package cn.loioi.test.model;

import org.xutils.db.annotation.Column;
import org.xutils.db.annotation.Table;

import java.io.Serializable;

/**
 * (c) Copyright 2016 by
 *
 * @author :yyzh
 * @description : 城市代码model
 * @package :cn.loioi.test.model
 * @创建时间 :2016/3/25 22:36
 */
@Table(name = "base_data_city")
public class BaseDateCityModel implements Serializable {
    @Column(name = "id", isId = true)
    private int id;

    @Column(name = "code")
    private String code;

    @Column(name = "parent_code")
    private String parentCode;

    @Column(name = "name")
    private String name;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getParentCode() {
        return parentCode;
    }

    public void setParentCode(String parentCode) {
        this.parentCode = parentCode;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return (name + ":" + code);
    }
}
